//
//  NRWCarAlterView.h
//  New_Runway
//
//  Created by 邢毅 on 2018/4/25.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, NRWCarAlterViewButtonType) {
    kAlterViewButtonTypeLeft,
    kAlterViewButtonTypeRight,
    kAlterViewButtonTypeClose
};

@class NRWCarAlterView;

@protocol NRWCarAlterViewDelegate<NSObject>

- (void)alterView:(NRWCarAlterView *)alter didClickWithType:(NRWCarAlterViewButtonType)type btnTitle:(NSString *)title;

@end

@interface NRWCarAlterView : UIView

+ (instancetype)alterViewWithTitle:(NSString *)title
                           messgae:(NSString *)messgae
                         leftTitle:(NSString *)leftTitle
                        rightTitle:(NSString *)rightTitle
                          delegate:(id<NRWCarAlterViewDelegate>)delegate;

+ (instancetype)alterViewWithTitle:(NSString *)title
                           messgae:(NSString *)messgae
                         leftTitle:(NSString *)leftTitle
                        rightTitle:(NSString *)rightTitle
                      showCloseBtn:(BOOL)isShowCloseBtn
                          delegate:(id<NRWCarAlterViewDelegate>)delegate;

- (void)show;

- (void)dismiss;

@property (strong, nonatomic) UIColor *titleColor;

@property (strong, nonatomic) UIColor *messageColor;

@property (strong, nonatomic) UIColor *leftBtnTitleColor;

@property (strong, nonatomic) UIColor *rightBtnTitleColor;

@property (strong, nonatomic) UIFont *titleFont;

@property (strong, nonatomic) UIFont *messageFont;

@property (strong, nonatomic) UIFont *leftBtnFont;

@property (strong, nonatomic) UIFont *rightBtnFont;

@property (copy, nonatomic) NSString *closeBtnImage;

@property (assign, nonatomic) NSInteger titleLines;

@property (assign, nonatomic) NSInteger messageLines;

@end
